package com.shoppingCart.mapper;

import com.shoppingCart.dataobject.Customer;
import org.apache.ibatis.annotations.Mapper;

/**
 * create By lihao
 */
@Mapper
public interface CustomerMapper {
    /**
     * 通过openId查询user
     * */
    Customer findUserByOpenId(String openId);

    /**
     * 通过userId查询user
     * */
    Customer findUserById(String userId);

    /**
     *新增user
     **/
    boolean insertUser(Customer customer);

}
